package cn.wolfcode.luowowo.repository;

import cn.wolfcode.luowowo.domain.Region;
import cn.wolfcode.luowowo.domain.UserInfo;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface RegionRepository extends MongoRepository<Region,String> {

    Region findByIdIn(String rid);

    /**
     * 热门区域并排序
     * @param stateHot
     * @return
     */
    List<Region> findByIshotOrderBySequenceAsc(int stateHot);
}
